package show.lmm.oauth2server.service;

import org.springframework.stereotype.Service;
import show.lmm.oauth2server.core.entity.AppInfo;
import show.lmm.oauth2server.core.repository.AppInfoRepository;

import java.util.List;

@Service
public class AppInfoService {

    private final AppInfoRepository appInfoRepository;

    public AppInfoService(AppInfoRepository appInfoRepository) {
        this.appInfoRepository = appInfoRepository;
    }

    /**
     * 查询应用列表
     */
    public List<AppInfo> list() {
        return appInfoRepository.findAll();
    }
}
